package com.example.web.config.multiple;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
/**
 * <dl>动态数据源  (需要继承AbstractRoutingDataSource接口)</dl>
 * @author yzl
 *
 */
public class MultipleDataSource extends AbstractRoutingDataSource {

	@Override
	protected Object determineCurrentLookupKey() {
		return DataSourceContextHolder.getDataSourceType();
	}

}
